<if condition="answer_can_support($answer['id'])">
    <a class="support_answer" answer-id="{$answer.id}"><span class="support_img"></span><span>{$answer.support|default='0'}</span></a>
    <a class="oppose_answer" answer-id="{$answer.id}"><span class="oppose_img"></span><span>{$answer.oppose|default='0'}</span></a>
    <else/>
    <php>if(is_login()){
            if(get_support_type($answer['id'])==0){
                $oppose_already_do='oppose_already';
                $support_already_do='';
            }else if(get_support_type($answer['id'])==1){
                $support_already_do='support_already';
                $oppose_already_do='';
            }
    </php>
        <a><span class="support_false_img {$support_already_do}"></span> <span>{$answer.support|default='0'}</span></a>
        <a><span class="oppose_false_img {$oppose_already_do}"></span> <span>{$answer.oppose|default='0'}</span></a>
        <php>}else{</php>
        <a class="support_answer" answer-id="{$answer.id}"><span class="support_img"></span><span>{$answer.support|default='0'}</span></a>
        <a class="oppose_answer" answer-id="{$answer.id}"><span class="oppose_img"></span><span>{$answer.oppose|default='0'}</span></a>
    <php>}</php>

</if>